package org.eclipse.mylyn.rememberthemilk.core.model;


public class RTMInfo
{

	public enum Key
	{
		NAME("name"),
		
		//CC("cc"), 
		CHANGE_TIME("changetime"), 
		//COMPONENT("component"), 
		//DESCRIPTION( "description"),
		ID("id"), 
		//KEYWORDS("keywords"), 
		//MILESTONE("milestone"), 
		//OWNER("owner"), 
		PRIORITY("priority"), 
		//REPORTER( "reporter"), 
		//RESOLUTION("resolution"), 
		STATUS("status"), 
		//SEVERITY( "severity"), 
		SUMMARY("summary"), 
		TIME("time"), 
		//TYPE("type"),
		//VERSION( "version"),
		TASKLIST("listId"),
		TASKSERIE("seriesId"),
		COMPLETED("completedDate"), 
		CREATED("createdDate"), 
		DUE("dueDate"),
		POSTPONED("postponed"), 
		TASKID("taskId"), 
		TAGS("tags"),
		MODIFIED("modifiedDate");

		public static Key fromKey(String name)
		{
			for (Key key : Key.values())
			{
				if (key.getKey().equals(name))
				{
					return key;
				}
			}
			return null;
		}

		private String key;

		Key(String key)
		{
			this.key = key;
		}

		@Override
		public String toString()
		{
			return key;
		}

		public String getKey()
		{
			return key;
		}
	}

}
